home *** CD-ROM | disk | FTP | other *** search
- Path: mudskipper.cac.psu.edu!user
- From: fcusack@tdx.org (frank.)
- Newsgroups: comp.lang.c++
- Subject: Re: Diff between const str& and const str*
- Date: Mon, 19 Feb 1996 07:37:05 -0400
- Organization: Psychic Enemies Network
- Message-ID: <fcusack-1902960737050001@mudskipper.cac.psu.edu>
- References: <4g93d4$ej4@newsstand.cit.cornell.edu>
- NNTP-Posting-Host: mudskipper.cac.psu.edu
-
- In article <4g93d4$ej4@newsstand.cit.cornell.edu>, wo10@cornell.edu
- (Warren Ouyang) wrote:
-
- > Hello all, I was wondering... in C++, is there a difference between
- > "const str&" and "const str*" as function parameters? (str is a class).
- > Thanks for any help!
- >
-
- One is a pointer (*), one is a reference (&). :) But you knew that...
- In your function, you will have to deal with that parameter differently
- based on it's type...
- ~Frank
- -- I am Pentium of Borg. Division is futile. You will be approximated. --
- -- If you build it, they will come --> http://www.tdx.org/~fcusack/ --
- -- PGP key fingerprint: 01 C0 C0 B9 CC 78 67 0F 3F 64 80 65 8B 0F F9 EA --
-